package com.ruoyi.project.module.api.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.module.api.common.utils.ApiResult;
import com.ruoyi.project.module.joinus.domain.Joinus;
import com.ruoyi.project.module.joinus.service.IJoinusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/joinus")
@Api("前台需求接口")
public class AppJoinUsController extends BaseController {

    @Autowired
    private IJoinusService joinusService;

    @PostMapping("/save")
    @ResponseBody
    @ApiOperation("保存加入我们")
    public ApiResult list(@RequestBody Joinus joinus) {
        int count = joinusService.insertJoinus(joinus);
        return ApiResult.ok(count + "");
    }

}
